<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        
        
        <link rel="shortcut icon" href="../../img/favicon.ico">
        <title>会员 - Mall Docs</title>
        <link href="../../css/bootstrap-custom.min.css" rel="stylesheet">
        <link href="../../css/font-awesome.min.css" rel="stylesheet">
        <link href="../../css/base.css" rel="stylesheet">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->

        <script src="../../js/jquery-1.10.2.min.js" defer></script>
        <script src="../../js/bootstrap-3.0.3.min.js" defer></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script> 
    </head>

    <body>

        <div class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">

                <!-- Collapsed navigation -->
                <div class="navbar-header">
                    <!-- Expander button -->
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="../..">Mall Docs</a>
                </div>

                <!-- Expanded navigation -->
                <div class="navbar-collapse collapse">
                        <!-- Main navigation -->
                        <ul class="nav navbar-nav">
                            <li >
                                <a href="../..">Home</a>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">User <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../../user/user/">Main</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown active">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Mall <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../">首页</a>
</li>
                                    
<li >
    <a href="../catalog/">分类</a>
</li>
                                    
<li >
    <a href="../coupon/">优惠券</a>
</li>
                                    
<li >
    <a href="../goods/">产品</a>
</li>
                                    
<li >
    <a href="../search/">搜索</a>
</li>
                                    
<li >
    <a href="../cart/">购物车</a>
</li>
                                    
<li >
    <a href="../address/">地址</a>
</li>
                                    
<li >
    <a href="../activity/">活动</a>
</li>
                                    
<li >
    <a href="../order/">订单</a>
</li>
                                    
<li >
    <a href="../my/">个人中心</a>
</li>
                                    
<li >
    <a href="../collect/">收藏</a>
</li>
                                    
<li >
    <a href="../aftersale/">售后</a>
</li>
                                    
<li class="active">
    <a href="./">会员</a>
</li>
                                    
<li >
    <a href="../charge/">充值</a>
</li>
                                    
<li >
    <a href="../live/">直播</a>
</li>
                                    
<li >
    <a href="../../www/www/">官网</a>
</li>
                                    
<li >
    <a href="../invite/">邀请</a>
</li>
                                    
<li >
    <a href="../../feed/feed/">圈子</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">管理后台 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../../admin/user/">用户</a>
</li>
                                    
<li >
    <a href="../../admin/goods/">商品</a>
</li>
                                    
<li >
    <a href="../../admin/ad/">推广</a>
</li>
                                    
<li >
    <a href="../../admin/topic/">活动</a>
</li>
                                    
<li >
    <a href="../../www/www-admin/">官网</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">溯源 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../../trace/pda/">PDA</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">中优 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../../zhongyou/trading_index/">指数</a>
</li>
                                    
<li >
    <a href="../../zhongyou/admin/">后台</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">快递 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li >
    <a href="../../express/express/">app接口</a>
</li>
                                    
<li >
    <a href="../../express/express_user/">用户app接口</a>
</li>
                                    
<li >
    <a href="../../admin/express/">管理接口</a>
</li>
                                </ul>
                            </li>
                        </ul>

                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </li>
                            <li >
                                <a rel="next" href="../aftersale/">
                                    <i class="fa fa-arrow-left"></i> Previous
                                </a>
                            </li>
                            <li >
                                <a rel="prev" href="../charge/">
                                    Next <i class="fa fa-arrow-right"></i>
                                </a>
                            </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="container">
                <div class="col-md-3"><div class="bs-sidebar hidden-print affix well" role="complementary">
    <ul class="nav bs-sidenav">
        <li class="main active"><a href="#vip">VIP相关接口</a></li>
            <li><a href="#_1">修订记录</a></li>
            <li><a href="#_2">背景</a></li>
            <li><a href="#_3">产品说明</a></li>
            <li><a href="#_4">关键流程说明</a></li>
            <li><a href="#_5">接口说明</a></li>
    </ul>
</div></div>
                <div class="col-md-9" role="main">

<h1 id="vip">VIP相关接口</h1>
<div class="toc">
<ul>
<li><a href="#vip">VIP相关接口</a><ul>
<li><a href="#_1">修订记录</a></li>
<li><a href="#_2">背景</a></li>
<li><a href="#_3">产品说明</a></li>
<li><a href="#_4">关键流程说明</a></li>
<li><a href="#_5">接口说明</a><ul>
<li><a href="#10-vip">1.0 vip 充值</a><ul>
<li><a href="#_6">接口说明</a></li>
<li><a href="#_7">请求说明</a></li>
<li><a href="#_8">输入参数</a></li>
<li><a href="#_9">错误说明</a></li>
<li><a href="#_10">返回实例</a></li>
</ul>
</li>
<li><a href="#10-vip_1">1.0 vip 支付</a><ul>
<li><a href="#_11">接口说明</a></li>
<li><a href="#_12">请求说明</a></li>
<li><a href="#_13">输入参数</a></li>
<li><a href="#_14">错误说明</a></li>
<li><a href="#_15">返回实例</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<h2 id="_1">修订记录</h2>
<hr />
<table>
<thead>
<tr>
<th>日期</th>
<th>作者</th>
<th>修订类型</th>
<th>修订内容</th>
<th>版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>2020年07月03日</td>
<td>冷立纲</td>
<td>A</td>
<td>新增设计方案</td>
<td>1.0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>【修订类型：A-新增  M-修改 D-删除】</p>
</blockquote>
<h2 id="_2">背景</h2>
<p>vip 相关接口</p>
<h2 id="_3">产品说明</h2>
<h2 id="_4">关键流程说明</h2>
<h2 id="_5">接口说明</h2>
<h4 id="10-vip">1.0 vip 充值</h4>
<h5 id="_6">接口说明</h5>
<p>vip 充值首页</p>
<h5 id="_7">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/vip/my</td>
</tr>
</tbody>
</table>
<h5 id="_8">输入参数</h5>
<p>无</p>
<h5 id="_9">错误说明</h5>
<h5 id="_10">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;uid&quot;: 11446,  //用户ID
        &quot;avatar&quot;: &quot;https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqDw87BjTffT03d4T5z9ynn6bia79vWUdDzXbvvCrhbL5oBAYIOTe6iaH790uto7CTkH71oDEpzuMjQ/132&quot;,
        &quot;name&quot;: &quot;杜京亚&quot;,
        &quot;gender&quot;: 1,
        &quot;birthday&quot;: null,
        &quot;status&quot;: 0,
        &quot;mobile&quot;: null,
        &quot;createTime&quot;: 1593445700769,
        &quot;updateTime&quot;: null,
        &quot;vipStartTime&quot;: null,   //vip 开始时间
        &quot;vipEndTime&quot;: null,  //vip 结束时间
        &quot;userSource&quot;: null,  //用户来源
        &quot;level&quot;: null,
        &quot;vipTotalDays&quot;: null,  //用户vip 累计时长
        &quot;buyTimes&quot;: null,  //累计购买次数
        &quot;vipList&quot;: [
            {
                &quot;id&quot;: 1,  //ID
                &quot;comment&quot;: &quot;一个月会员&quot;,  //描述
                &quot;originalPrice&quot;: 300.00,  //原价
                &quot;price&quot;: 2.00, //价格
                &quot;timeLen&quot;: 1, //时长
                &quot;timeType&quot;: 30, //时间类型 1:天 30:月
                &quot;vipType&quot;: 0, // vip 类型
                &quot;addTime&quot;: null, // 添加时间
                &quot;delete&quot;: false, // 是否删除 
                &quot;bgUrl&quot;: null //背景
            }
        ],   //vip 列表
        &quot;payTypes&quot;: [
            {
                &quot;typeName&quot;: &quot;ALIPAYCASH&quot;,
                &quot;comment&quot;: &quot;支付宝支付&quot;,
                &quot;thumbnail&quot;: null
            },
            {
                &quot;typeName&quot;: &quot;WX_APP&quot;,
                &quot;comment&quot;: &quot;微信支付&quot;,
                &quot;thumbnail&quot;: null
            }
        ],
        &quot;remainDays&quot;: 0,
        &quot;vip&quot;: false
    }
}    
</code></pre>

<h4 id="10-vip_1">1.0 vip 支付</h4>
<h5 id="_11">接口说明</h5>
<p>vip 充值首页</p>
<h5 id="_12">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/vip/pay</td>
</tr>
</tbody>
</table>
<h5 id="_13">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">状态</td>
<td align="left">购物车ID</td>
</tr>
<tr>
<td align="left">payType</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">支付类型</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_14">错误说明</h5>
<h5 id="_15">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;payOrderId&quot;: null,
        &quot;outPayOrderId&quot;: null,
        &quot;callPayInfo&quot;: &quot;alipay_sdk=alipay-sdk-java-dynamicVersionNo&amp;app_id=2019021963294014&amp;biz_content=%7B%22out_trade_no%22%3A%22PRE20072323512323809B64E7981256%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22subject%22%3A%22%E4%B8%AD%E6%A0%87%E4%BC%98%E9%80%89%22%2C%22timeout_express%22%3A%2230m%22%2C%22total_amount%22%3A%222.0%22%7D&amp;charset=UTF-8&amp;format=json&amp;method=alipay.trade.app.pay&amp;notify_url=http%3A%2F%2Fxiaogang.org.cn&amp;sign=MpclAkitGsMgourGcRVj6xvbHfb%2FyFH12FIXRYiPeQr6OXR2EUGAII5nHv9bTvQwk2QId%2BMDOuKeCGl3SBPZjXzb7aYTA%2BMW%2BCHwrG3YSdfsXLxbRMTPi659W0s%2FHiGJr2q%2FUKT8YTSFtNTVovc0LulMNXQ8IW4bIvyyjPypxntaHpNr6xRCkAx4JveliZQ1y5rknI8hS8nyd985ddHHxX%2F2v5m%2B1P3bRJFvkfmVku0GHtDtaz65nTDMQasisin39eJuo%2BTHXpkPv82GMI%2F5EL%2BhSZ%2F7nkw51XMAE1sUcjyH9pNMwHmBjTpLvu1GBHWEc%2B4StyPQwb2rNxpKFKanJA%3D%3D&amp;sign_type=RSA2&amp;timestamp=2020-07-23+23%3A51%3A24&amp;version=1.0&quot;,
        &quot;payCallbackInfo&quot;: null
    }
}

</code></pre></div>
        </div>

        <footer class="col-md-12">
            <hr>
            <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
        </footer>
        <script>
            var base_url = "../..",
                shortcuts = {"search": 83, "next": 78, "help": 191, "previous": 80};
        </script>
        <script src="../../js/base.js" defer></script>
        <script src="../../search/main.js" defer></script>

        <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="Search Modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Search</h4>
            </div>
            <div class="modal-body">
                <p>
                    From here you can search these documents. Enter
                    your search terms below.
                </p>
                <form role="form">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
                    </div>
                </form>
                <div id="mkdocs-search-results"></div>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="Keyboard Shortcuts Modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Keyboard Shortcuts</h4>
            </div>
            <div class="modal-body">
              <table class="table">
                <thead>
                  <tr>
                    <th style="width: 20%;">Keys</th>
                    <th>Action</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="help shortcut"><kbd>?</kbd></td>
                    <td>Open this help</td>
                  </tr>
                  <tr>
                    <td class="next shortcut"><kbd>n</kbd></td>
                    <td>Next page</td>
                  </tr>
                  <tr>
                    <td class="prev shortcut"><kbd>p</kbd></td>
                    <td>Previous page</td>
                  </tr>
                  <tr>
                    <td class="search shortcut"><kbd>s</kbd></td>
                    <td>Search</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>

    </body>
</html>
